package org.overmind.ieat.server.exceptions.provider;

import org.overmind.ieat.server.entity.Provider;

/**
 * @author eugene.karanda
 */
public class ProviderUpdateException extends RuntimeException {
    private int updatedId;
    private Provider provider;

    public ProviderUpdateException(int updatedId, Provider provider) {
        this.updatedId = updatedId;
        this.provider = provider;
    }

    public ProviderUpdateException(Throwable cause, int updatedId, Provider provider) {
        super(cause);
        this.updatedId = updatedId;
        this.provider = provider;
    }

    public int getUpdatedId() {
        return updatedId;
    }

    public Provider getProvider() {
        return provider;
    }
}
